import axios from '@/utils/request'




// 第一个方法:
export function getList(params) {
  return axios({
    url: '/course/findAll',
    method: 'get',
    params
  })
}
export function getList2(params) {
  return axios({
    url: '/course/findAll2',
    method: 'get',
    params
  })
}

export function getList3(params) {
  return axios({
    url: '/course/findAll3',
    method: 'get',
    params
  })
}


export function addCourse(data) {
  return axios({
    url: '/course/addCourse',
    method: 'post',
    data
  })
}
//


export function edit(data) {
  return axios({
    url: '/course/edit',
    method: 'post',
    data
  })
}
export function deleteById(params) {
  return axios({
    url: '/course/delete',
    method: 'get',
    params
  })
}
//
export function deletestudent(params) {
  return axios({
    url: '/course/deletestudent',
    method: 'get',
    params
  })
}


